package com.kidala.tool;

public class NullLong {

    public static void main(String[] args) {
        Long l1 = null;
        Long l2 = null;

        Long z1 = null;
        Long z2 = null;
        boolean b = NullLong.valueOf(l1) + Double.valueOf(l2) == Double.valueOf(z1) + Double.valueOf(z2);
        System.out.println(b);
    }

    private static Long valueOf(Long param) {
        if (param == null) {
            return Long.valueOf(0L);
        } else {
            return Long.valueOf(param);
        }
    }

}
